package com.alon.spring01.springboot;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: spring01
 * @description: bean配置
 * @author: yulongguang
 * @create: 2019-09-03 20:04
 **/
@Configuration
public class BeanConfig {

    @Bean(name = "bill")
    public Person person() {
        return new Person("ALONE", 25);
    }

    @Bean("linux")
    public Person person1() {
        return new Person("Brobe", 25);
    }

}
